package pers.ljf.escloud.dao.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author laijinfan1
 * @since 2022-02-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_enterprise")
public class Enterprise implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 企业的sys_user_d
     */
    private Long adminId;

    @TableField(exist = false)
    private String adminUsername;

    /**
     * 单位MB
     */
    private Long spaceAmount;

    /**
     * 已使用空间大小，单位MB
     */
    private Long spaceUsed;

    private String name;

    private String businessCode;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date establishDate;

    @TableField(exist = false)
    private String establishDateOuter;

    private Long settings;

    private Integer userAmount;

    private Integer userUsed;

    private Boolean isDelete;

    private Integer status;
}
